import re
def replace(match):
    text=match.group()
    n=int(text)
    return str(n*2)
line='number=123'
result=re.sub('\d+',replace,line)
print(result)
